package cao.oschina.function.me.notice;

import android.view.View;

import cao.oschina.activity.ToolBarActivity;
import cao.oschina.app.AppContext;

/**
 * 消息提醒抽象类
 * <p/>
 * Created by Haidy on 15/4/11.
 */
public abstract class NoticeFunction {

    protected final View view;
    protected final AppContext app;
    protected final ToolBarActivity activity;
    protected boolean isLoading = false;
    protected boolean getAll = false;//是否获取全部列表
    protected int pageIndex = 0;
    protected boolean reLogin = false;


    public NoticeFunction(View view, ToolBarActivity activity) {
        this.view = view;
        this.app = activity.app;
        this.activity = activity;
        initView();
        initData();
    }

    protected abstract void initView();

    protected abstract void initData();
}
